<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('setting/site')}">{:lang('WEB_SITE_INFOS')}</a></li>
        <li class="active"><a href="javascript:;" data-toggle="tab">添加新变量</a></li>
    </ul>
    <form class="form-horizontal margin-top-20 layui-form layui-form-pane" role="form" action="" method="post" lay-filter="variable">
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">
                            <span class="form-required">*</span>选择类别</label>
                            <div class="col-md-8 col-sm-10">
                                <select id="test" class="cars" name="catid" style="width: 300px;float: left;"> 
                                    <option value="1">首页</option> 
                                    {$Tree} 
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label">
                            <span class="form-required">*</span>选择属性</label>
                            <div class="col-md-8 col-sm-10">
                                <select id="test" class="cars" name="text" style="width: 300px;float: left;"> 
                                    <option value="单行文本">单行文本框</option> 
                                    <option value="图片">图片</option> 
                                    <option value="多行文本">多行文本框</option> 
                                </select>
                            </div>
                        </div>
                        <style type="text/css">
                            .layui-form-select{width: 300px;}
                        </style>
                        <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label"><span
                                    class="form-required">*</span>变量标题</label>
                            <div class="col-md-4 col-sm-10">
                                <input style="width: 300px;float: left;" name="title" lay-verify="required" type="text" class="form-control layui-form" id="input-site-title"placeholder="请输入变量标题">
                            </div>
                        </div>
                         <div class="form-group">
                            <label for="input-site-name" class="col-sm-2 control-label"><span
                                    class="form-required">*</span>变量名</label>
                            <div class="col-md-8 col-sm-10">
                                <input style="width: 300px;float: left;" type="text" lay-verify="required" class="form-control" id="input-site-name" name="name" placeholder="请输入变量名" value=""><span style="color: red;display: inline-block;height: 34px;line-height: 34px;margin-left: 10px;">*</span>变量添加 'yc_' 前缀
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="button" class="btn btn-primary js-ajax-submit" lay-submit lay-filter="consub">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </form>

</div>
<script type="text/javascript">
    var url = "{:url('variable/sitePost')}";
    layui.use(['form'], function(){
        LayuiPost(url);
    });
</script>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
